
package com.microsoft.schemas.office.project.server.webservices.project;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for DataStoreEnum.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="DataStoreEnum">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="WorkingStore"/>
 *     &lt;enumeration value="PublishedStore"/>
 *     &lt;enumeration value="VersionsStore"/>
 *     &lt;enumeration value="ReportingStore"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "DataStoreEnum")
@XmlEnum
public enum DataStoreEnum {

    @XmlEnumValue("WorkingStore")
    WORKING_STORE("WorkingStore"),
    @XmlEnumValue("PublishedStore")
    PUBLISHED_STORE("PublishedStore"),
    @XmlEnumValue("VersionsStore")
    VERSIONS_STORE("VersionsStore"),
    @XmlEnumValue("ReportingStore")
    REPORTING_STORE("ReportingStore");
    private final String value;

    DataStoreEnum(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static DataStoreEnum fromValue(String v) {
        for (DataStoreEnum c: DataStoreEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
